const data = {
  kuaishouJS: [1, 1],
  douyinJS: [1, 2],
  douyinHS: [0.3, 0.5],
  douyinSC: [0.3, 0.3],

  toutiao: [0.5, 2],
  youshi: [0.5, 2],
  toutiaoJS: [0.5, 2],
  wukong: [0.5, 2],
  hongguo: [0.5, 0.5],

  baiduCT: [0.5, 0.5],
  baiduJS: [0.2, 0.2],
  xigua: [0.5, 1],
  daishuDD: [0.5, 0.5],
  kuaishou: [0.2, 0.6],

  fanqie: [0.3, 0.3],
  fanqieCT: [0.2, 0.2],
  fanqieYY: [0.1, 0.1],
  danhua: [0.1, 0.1],
  changdu: [0.1, 0.1],
  shengdu: [0.3, 0.3],
  sudu: [0.3, 0.3],
};

function compute(data, type) {
  return Object.keys(data).reduce((pre, cur) => {
    return pre + data[cur][type] * 100;
  }, 0);
}
// node .\doc\money\money6.js
console.log(
  Object.keys(data).length,
  compute(data, 0) / 100,
  compute(data, 1) / 100
);
